<?php

class logout extends CI_Controller {

    public function __construct() {
        parent::__construct();
         $this->load->helper('url');
    }
    
    public function index(){
        session_destroy();
        $this->session->sess_destroy();
        redirect(base_url());
    }
}
?>
